#!/usr/bin/python2
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab:fileencoding=utf-8

from __future__ import absolute_import
from __future__ import print_function
#from __future__ import unicode_literals
from __future__ import division

'''
        @author: msune
        @organization: i2CAT, OFELIA FP7

        Simple Logger wrapper
'''
import logging

_logger = None

def get_logger():
    global _logger
    if _logger is None:
        logging.basicConfig(format='%(asctime)s [%(filename)s:%(lineno)d] %(levelname)s: %(message)s',
                datefmt='%d/%m/%Y %I:%M:%S %p',
                level=logging.DEBUG)
        _logger = logging.getLogger()
    return _logger

